<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<script src="iconfont/iconfont.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			html {
				width: 100%;
				height: 100%;
			}

			body {
				height: 100%;
				background-color: transparent;
			}

			.icon {
				width: 65px;
				height: 65px;
				vertical-align: -0.15em;
				fill: currentColor;
				overflow: hidden;
			}
		</style>
	</head>

	<body>
		<div id="wrapper" style="position: absolute; bottom: 60px; height: 65px;">
			<svg id="accept" class="icon" aria-hidden="true" style="margin-left: 30px; float: left;">
				<use xlink:href="#icon-jieting1"></use>
			</svg>
			<svg id="close" class="icon" aria-hidden="true" style="margin-right: 30px; float: right;">
				<use xlink:href="#icon-guaduan"></use>
			</svg>
		</div>

		<script src="js/mui.js"></script>
		<script type="text/javascript">
			mui.init({
				beforeback: function() {
					return false;
				}
			});
			
			var ele_wrapper = document.getElementById('wrapper');
			var ele_close = document.getElementById('close');
			
			var cw = document.documentElement.clientWidth;
			console.log(cw);
			ele_wrapper.style.width = cw + 'px';
			
			mui.plusReady(function() {
				ele_close.addEventListener('tap', function() {
					var video_chatting = plus.webview.getWebviewById('video_chatting.html');
					video_chatting.evalJS('closePusher()');

					video_chatting.close();
					plus.webview.currentWebview().close();
				});
			});
		</script>
	</body>

</html>
